package com.ddzh.feign;


import com.ddzh.feign.fallback.OrderFeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@FeignClient(value = "order-service",fallback = OrderFeignApiFallback.class)
public interface OrderFeignApi {

    @GetMapping("order/{username}")
    public List findOrderByUserId(@PathVariable("username") String username);
}
